const { router, fs, urlencodedParser } = require('../CustomMethod');
const cheerio = require('cheerio');
const tup = require('../CustomMethod/indexImg');
router.post('/tupian', urlencodedParser, (req, res) => {
    let url = `https://soso.nipic.com/?q=${req.body.keyword}`;
    tup(url, (data) => {
        res.send({ code: 200, module: data });
    })
})

module.exports = router;